package api

import (
	request "gitee.com/changeden/volcengine-livesaas-request-go"
)

type GetActivityRequest struct {
	ActivityId *int64 `json:"ActivityId"`
}
type GetActivityResponse struct {
	Id               int64  `json:"Id"`
	Name             string `json:"Name"`
	LiveTime         int64  `json:"LiveTime"`
	Status           int32  `json:"Status"`
	ViewUrl          string `json:"ViewUrl"`
	IsPageViewEnable int32  `json:"IsPageViewEnable"`
	IsLockPreview    int32  `json:"IsLockPreview"`
	CoverImage       string `json:"CoverImage"`
}

func (instance *Instance) GetActivity(data *GetActivityRequest) (*GetActivityResponse, error) {
	d := request.Data{
		Action: "GetActivityAPI",
	}
	bindQuery(&d, *data)
	var r GetActivityResponse
	err := instance.get(&d, &r)
	return &r, err
}
